package com.itzixi.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.itzixi.common.utils.LeeJSONResult;
import com.itzixi.pojo.SysUser;
import com.itzixi.service.email.EmailService;

@Controller
@RequestMapping("/email")
public class EmailController {

	@Autowired
	private EmailService emailService;

	@RequestMapping("/send")
	@ResponseBody
	public LeeJSONResult send(SysUser sysUser){
		emailService.sendEmail(null,sysUser);
		return LeeJSONResult.ok();
	}
}
